/*
 * Copyright (c) 2020-2030 Sishun.Co.Ltd. All Rights Reserved.
 */
package com.rabbitmq.demo.workmodle;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author ：lvfeilong
 * @version ：
 * @description ：
 * @program ：MySpringBoot
 * @date ：Created in 2021/4/8 9:03
 */
@Slf4j
@Component
@RabbitListener(queuesToDeclare ={@Queue("queue")})
public class SimpleModle {
    @RabbitHandler
    public void customer(String message) {
        log.error("简单模型消费；{}",message);
    }
}